/********************************************************
 * Filename: TclWordDetector.java
 * Author: LMU
 * Program: TUnit
 * Description: Creates the tcl word detector for the
 * tcl editor.  
 * Revision History:
 * 20060426: Initial Revision.
 * *****************************************************/

package edu.lmu.cs.tUnit.editor;

import org.eclipse.jface.text.rules.IWordDetector;

public class TclWordDetector implements IWordDetector {
	/**
	 * @see IWordDetector#isWordStart
	 * @param c
	 * @return
	 */
	public boolean isWordStart(char c) {
		return Character.isJavaIdentifierStart(c);
	}

	/**
	 * @see IWordDetector#isWordPart
	 * @param c
	 * @return
	 */
	public boolean isWordPart(char c) {
		return Character.isJavaIdentifierPart(c);
    }
}
